package com.example.alipay.controller;

import com.example.utils.ErCodeUtils;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/10 4:03
 * @since JDK 1.8
 *
 * 二维码生生成测试
 */
@RestController
@RequestMapping("img")
public class ErCodeController {


    /**
     *
     *
     * @description:
     * @param
     * @return:
     * @author: Xiongx
     * @time: 2021/4/13 14:42
     */
    @RequestMapping("createercode")
    public void createCode(@ApiParam("二维码信息") @RequestParam("content") String content, HttpServletResponse response){
        ErCodeUtils.createQrCodeN(content,200,200,response);
    }
}
